#include "Core/Profile/CodeProfile.h"
#include "Core/File/XMLParser.h"
#include "Core/File/XMLNode.h"
#include "XMLTest.h"

const char * XMLTest::GetName() const
{
	return "[CORE] XML Test";
}

Core::error XMLTest::Create()
{
	if(Failed(UnitTest::Create()))
		return Core::errFailed;

	return Core::errOK;
}

Core::error XMLTest::Destroy()
{
	if(Failed(UnitTest::Destroy()))
		return Core::errFailed;

	return Core::errOK;
}

Core::error XMLTest::Execute()
{
	//PROFILE(GetName());

	//XMLParser * pParser = new XMLParser();
	//XMLNode * pNode = pParser->Load("../data/Tests/testin.xml");

	//if(!pNode)
	//	return Core::errFailed;

	//if(pNode->GetName()!="toto")
	//	return Core::errFailed;

	//pParser->Save("../data/Tests/testout.xml");

	//delete pParser;

	return Core::errOK;
}
